package com.wzz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzz.pojo.BugDetail;
import com.wzz.pojo.vo.BugDetailAndBugProjectVo;
import com.wzz.service.BugDetailService;
import com.wzz.mapper.BugDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class BugDetailServiceImpl extends ServiceImpl<BugDetailMapper, BugDetail>
    implements BugDetailService{

    @Autowired
    private BugDetailMapper bugDetailMapper;

    @Override
    public List<BugDetailAndBugProjectVo> getAllBugDetail(Long projectId) {
        return bugDetailMapper.getAllBugDetail(projectId);
    }

    @Override
    public int addBugDetail(BugDetail bugDetail) {
        return bugDetailMapper.insert(bugDetail);
    }

}




